/**
 * Message.java Create on 2011-11-29     
 *      
 * Copyright (c) 2011-11-29 by yiming     
 *      
 * @author <a href="alenzhangym@hotmail.com">Yiming</a>     
 * @version 1.0 
 */
package com.yimi.common;

import com.yimi.service.Entity;

/**
 * TODO  功能描述
 * 
 * 
 * 
 * @author Yiming
 * @version 1.0
 */
public class Message {
	private int event; 
	private int type;
	private Entity result;
	

	public Message(int event) {
		this.setEvent(event);
		type = 0;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setEvent(int event) {
		this.event = event;
	}

	/**
	 * @return the type
	 */
	public int getEvent() {
		return event;
	}

	/**
	 * @param result
	 *            the result to set
	 */
	public void setResult(Entity result) {
		this.result = result;
	}

	/**
	 * @return the result
	 */
	public Entity getResult() {
		return result;
	}

	/**
	 * @param reason
	 *            the reason to set
	 */
	public void setType(int reason) {
		this.type = reason;
	}

	/**
	 * @return the reason
	 */
	public int getType() {
		return type;
	}
}
